package com.kefu.chat.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@TableName(value="chat_poster")
@ApiModel(description = "渠道广告")
public class ChatPoster implements Serializable {
    /**
     * 主键
     */
    @TableId(value="id")
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 租户
     */
    @TableField(value="tenant_id")
    @ApiModelProperty(value = "租户")
    private String tenantId;

    /**
     * 名称
     */
    @TableField(value="name")
    @ApiModelProperty(value = "名称")
    private String name;

    /**
     * 内容
     */
    @TableField(value="content")
    @ApiModelProperty(value = "内容")
    private String content;

    /**
     * 描述
     */
    @TableField(value="remark")
    @ApiModelProperty(value = "描述")
    private String remark;

    /**
     * 引用次数
     */
    @TableField(value="url")
    @ApiModelProperty(name = "url", value = "跳转地址")
    private String url;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(name = "createTime", value = "创建时间")
    private Long createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(name = "updateTime", value = "更新时间")
    private Long updateTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user")
    @ApiModelProperty(name = "createUser", value = "创建人")
    private String createUser;
    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(name = "updateUser", value = "更新人")
    private String updateUser;

    /**
     * 创建人
     */
    @TableField(value = "create_name")
    @ApiModelProperty(name = "createName", value = "创建人")
    private String createName;

    /**
     * 更新人
     */
    @TableField(value = "update_name")
    @ApiModelProperty(name = "updateName", value = "更新人")
    private String updateName;
    private static final long serialVersionUID = 1L;
}
